home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / lib / udev / hwclock-set < prev    next >
Encoding:
Text File  |  2011-01-25  |  402 b   |  18 lines

  1. #!/bin/sh
  2. # Reset the System Clock to UTC if the hardware clock from which it
  3. # was copied by the kernel was in localtime.
  4.  
  5. dev=$1
  6.  
  7. if [ -f /etc/default/rcS ] ; then
  8.     . /etc/default/rcS
  9. fi    
  10.  
  11. if [ yes != "$UTC" ] ; then
  12.     if [ yes = "$BADYEAR" ] ; then
  13.     /sbin/hwclock --rtc=$dev --systz --localtime --noadjfile --badyear
  14.     else
  15.     /sbin/hwclock --rtc=$dev --systz --localtime --noadjfile
  16.     fi
  17. fi
  18.